package com.dt.dubai.sys.service;

import com.dt.dubai.sys.entity.SysAdminRoleEntity;
import com.dt.dubai.sys.service.innate.SysAdminRoleSerInnateAbsImp;
import com.dt.dubai.sys.service.ser.SysAdminRoleService;
import org.springframework.stereotype.Service;

@Service
public class SysAdminRoleServiceImp extends SysAdminRoleSerInnateAbsImp implements SysAdminRoleService {

    /*innateServiceStart*/
    @Override
    protected void userSavEntity(SysAdminRoleEntity inEntity) {

    }

    @Override
    protected void userModEntity(SysAdminRoleEntity inEntity, SysAdminRoleEntity upEntity) {
        upEntity.setCompanyDeptRecordId(inEntity.getCompanyDeptRecordId()); // 部门记录ID
        upEntity.setRoleNameZh(inEntity.getRoleNameZh()); // 角色中文名称
        upEntity.setRoleDesc(inEntity.getRoleDesc()); // 角色描述

    }
    /*innateServiceEnd*/
    /*以上内容请误删除或是移动，系统升级使用，static系统升级覆盖用户修改，用户代码请写入下方*/
}
